
package com.bei_en.teacher.admin.persistence.dao.regions;

import java.util.List;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;
import com.bei_en.teacher.admin.model.regions.bean.Regions;
import com.bei_en.teacher.admin.model.regions.condition.RegionsCondition;
import com.bei_en.teacher.admin.persistence.BaseDao;

/**
 * 
 * @author Guocg
 * @date 2016-10-3 23:27:08
 */
@Repository
public interface RegionsDao extends BaseDao<Regions, Integer> {

    Integer findNumberByCondition(RegionsCondition vo);

    List<Regions> findPageBreakByCondition(RegionsCondition vo, RowBounds rb);

    /**
     * 返回上次插入的id，用于merge
     * @return
     */
    Integer findLastInsertedId();
}
